#include<stdio.h> 
#include<unistd.h> 

int main()
{
  pid_t ret = fork();
  if(ret == 0)
  {
    int cnt = 5;

    while(cnt--)
    {
       printf("i am child:%d\n",getpid());
    }

    sleep(10);
  }
  else 
  {
    printf("i am parent:%d\n",getpid());
    sleep(3);
  }
  return 0;
}
